{% extends "application.html" %}

{% block content %}
  <!-- Drop down list -->
  {% if error %}
    <div class="alert alert-error span5">
      {{ error }}
    </div>
  {% endif %}
<div class="row">
  <div class="span8">
    <form class="form-horizontal"
          method="get"
          enctype="application/x-www-form-urlencoded"
          action="/svg">
    <fieldset>
      <legend>Airfoil Customizer</legend>
      <div class="control-group">
        <label class="control-label" for="select01">Airfoil</label>
        <div class="controls">
          <select id="select01" name="filename">
            {% for af in airfoils %}
              <option>{{ af|escape }}</option>
            {% endfor %}
          </select>
        </div>
      </div>
      <div class="control-group">
        <label class="control-label" for="input01">Cord Length</label>
        <div class="controls">
          <input type="text" class="input-small" id="input01" name="cord_length"
                 placeholder="0">
        </div>
      </div>
      <div class="control-group">
        <label class="control-label" for="input01">Laser Offset</label>
        <div class="controls">
          <input type="text" class="input-small" id="input01" name="laser_offset"
                 placeholder="0">
        </div>
      </div>
      <div class="control-group">
        <label class="control-label" for="input01">Bottom Template Height</label>
        <div class="controls">
          <input type="text" class="input-small" id="input01" name="bt_height"
                 placeholder="0">
          <p class="help-block">Leave this 0 if you don't want a bottom template cut</p>
        </div>
      </div>
      <div class="form-actions">
        <button type="submit" class="btn btn-primary">Download Airfoil</button>
        <!--<button type="reset" class="btn">Cancel</button>-->
      </div>
    </fieldset>
    </form>
  </div>
</div>
{% endblock %}
